"""add_validation_stats_to_import_batch

Revision ID: 7a9659384fc4
Revises: 0a47211d84db
Create Date: 2025-10-06 04:14:39.405097

"""
# pylint: skip-file
# type: ignore
# pyright: reportAttributeAccessIssue=false, reportGeneralTypeIssues=false
from typing import Sequence, Union

from alembic import op  # type: ignore[import]
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '7a9659384fc4'
down_revision: Union[str, Sequence[str], None] = '0a47211d84db'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('importbatch', sa.Column('errors_count', sa.Integer(), nullable=False, comment='Number of records with validation errors', server_default='0'))
    op.add_column('importbatch', sa.Column('warnings_count', sa.Integer(), nullable=False, comment='Number of records with warnings', server_default='0'))
    op.add_column('importbatch', sa.Column('duplicates_count', sa.Integer(), nullable=False, comment='Number of potential duplicate records found', server_default='0'))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('importbatch', 'duplicates_count')
    op.drop_column('importbatch', 'warnings_count')
    op.drop_column('importbatch', 'errors_count')
    # ### end Alembic commands ###
